#include "EpollServer.hpp"
#include <memory>


// 业务逻辑处理:将小写字母转为大写字母
void callBack(std::string request)
{
    for(int i = 0; i < request.size(); ++i)
    {
        if(islower(request[i]))
        {
            request[i] = toupper(request[i]);
        }
    }
    std::cout << "callBack: " << request << std::endl;
}

int main()
{
    std::unique_ptr<EpollServer> svr(new EpollServer(callBack));
    svr->Start();

    return 0;
}